home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / util / dtype / clidt.lha / clidt / doc / cli_dtc.doc next >
Text File  |  1995-08-07  |  1KB  |  48 lines

  1.  
  2.  
  3. TABLE OF CONTENTS
  4.  
  5. cli.datatype/cli.datatype
  6.  
  7.  
  8. cli.datatype/cli.datatype                            cli.datatype/cli.datatype
  9.  
  10.     NAME
  11.         cli.datatype - data type for launching extern programs and
  12.             displaying the command's standard output
  13.  
  14.     FUNCTION
  15.         This datatype launches an extern command and displays the standard
  16.         output of that command. This is useful to view the contents of a
  17.         archive like lha or tar archives without writing a complete datatype.
  18.         The standard output is placed in a tempory file in "T:", because the
  19.         text.datatype can't handle pipes.
  20.  
  21.     PREFS
  22.         The cli datatype is configured by a preference file "cli.prefs" in
  23.         "PROGDIR:Prefs/Datatypes/" or "Env:Datatypes/".
  24.         The file is parsed using ReadArgs() with the following template :
  25.  
  26.         "DATATYPE/A,COMMAND/F/K/A"
  27.  
  28.         DATATYPE - specifies the datatype
  29.         COMMAND  - specifies the command to launch for that datatype, a "%s"
  30.             in the command string is replaced by the real filename.
  31.  
  32.     EXAMPLE
  33.         ; cli.datatype preference file
  34.         Lha      COMMAND=lha v %s
  35.         Tar      COMMAND=tar tvf %s
  36.  
  37.     METHODS
  38.         OM_NEW - create a new object and launch the extern command
  39.  
  40.         OM_DISPOSE - delete the object
  41.  
  42.     TAGS
  43.         none
  44.  
  45.     SEE ALSO
  46.         text.datatype, ascii.datatype
  47.  
  48.